package com.nightsoul.disruptor.test.demo;

import java.util.UUID;

import com.lmax.disruptor.EventHandler;

public class TradeTransactionVasConsumer implements EventHandler<TradeTransaction> {

	@Override
	public void onEvent(TradeTransaction event, long sequence,
			boolean endOfBatch) throws Exception {
		event.setId(UUID.randomUUID().toString());//简单生成下ID
		System.out.println(event.getId());
	}
	
}



